<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page isELIgnored="false" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>个人管理信息系统-Personal Manager Information System</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<style type="text/css">
input {
	behavior: url('css/css.htc');
}
</style>
		<style type="text/css">
<!--
td {
	background: #fff;
	font-size: 11px;
	padding: 5px 5px 5px 10px;
	color: #4f6b72;
}

INPUT {
	border: 1px #333 solid;
	FONT-SIZE: 12px;
	margin-top: 0px;
	PADDING-TOP: 2px;
	padding-left: 3px;
	color: #063b4a;
	HEIGHT: 20px;
	BACKGROUND-COLOR: #f9f9f7;
}
-->
</style>
		<script language="javascript">
function checkform() {
	if (form.username.value.length<1){
		alert("请输入正确的用户名！");
		form.username.focus();
		return false;
	}else if(form1.username.value.length>30){
	    alert("请输入正确的用户名！");		
		form.username.focus();
		return false;
	}
	if (form.password.value.length<1){
        alert("密码不能为空！");
        form.password.focus();
        return false;
    } else if(form.password.value.length>16){
        alert("密码太长应该小于16位！");
        form.password.focus();
		return false;
    }	
	return true;
}
</script>
	</head>
	<body leftMargin="0" topMargin="0" rightMargin="0">
		<table width="100%" height="100%" align="center" bordercolor="#000000">
			<tr>
				<td colspan="1">&nbsp;&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td>
					<div align="center">
						<img src="images/login-bg.jpg" width="597" height="387" />
					</div>
				</td>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td align="center">
					<form id="form" name="form" method="post" action="login.do">
						<label>用户名:<input name="username" type="text" size="15" value="sxx" /></label>
						密 码:<input name="password" type="password" size="15" value="111111" />&nbsp;&nbsp;
						<input type="submit" value="登录" onclick="return checkform();">
						<c:if test="${!(empty error)}">
							<br><br><font color="red">${error}</font>
						</c:if>
					</form>
				</td>
				<td>&nbsp;</td>
			</tr>
		</table>
	</body>
</html>
